<?php
class fragmentModel extends baseModel{
    protected $table ='cms_fragment';  //模型表
    //前台调用替换数据碎片
    public function Write_Fragment($fid){
        $condition['id'] = intval($fid);
        $rel = model('fragment')->find($condition,'content');
        return $rel['content'];
    }
}